home *** CD-ROM | disk | FTP | other *** search
- Path: news.erl.sbs.de!news
- From: Gerolf Wendland <wendland%hpp015%hpp001.mch2.scn.de@scn.de>
- Newsgroups: comp.lang.c++,comp.lang.c,comp.os.ms-windows.programmer.misc
- Subject: Re: fastest code
- Date: Mon, 15 Apr 1996 08:12:34 +0200
- Organization: Siemens Business Services
- Message-ID: <3171E8D2.41C67EA6@scn.de>
- References: <316112A2.7D37@public.sta.net.cn> <4kjpn0INN817@keats.ugrad.cs.ubc.ca> <829352535snz@genesis.demon.co.uk> <4kof6e$te@news1.mnsinc.com> <4krbhlINNbk4@keats.ugrad.cs.ubc.ca>
- NNTP-Posting-Host: 139.3.107.122
- Mime-Version: 1.0
- Content-Type: text/plain; charset=iso-8859-2
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.01 (X11; I; SunOS 4.1.3 sun4m)
-
- Kazimir Kylheku wrote:
- It was addition instead of multiplication by constant values (i+i instead of 2*i)
-
- > If I were writing a compiler, I wouldn't bother ``optimizing'' this case at
- > all: If the programmer thinks he knows better, let him have his addition!
-
- Let the programmer write down his way of solving the problem.
- Let the compiler try to do the tideous optimization as much as possible.
-